package com.champ.mc.tusmvc.common.dto.oauth2;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class User {
    private String name;
    private String login;
    private String nickName;
    private String userIconId;
    private List<String> priofileType;
    private boolean active=true;
    private boolean deleteStatus=false;
    // 用户登录电话号码
    private String phoneNumber;
    // 用户联系电话号码
    private String contactPhoneNumber;
    private boolean phoneStatus;

    private String password;
    private String pwdLevel;
    private String gender;

    // 所在行业
    private String industry;
    // 月收入
    private String incomeLevel;
    // 教育程度
    private String education;
    // 婚姻状况
    private String maritalStatus;
    private long lastLogin;

    // 默认收货地址
    private Address defaultAddress;
    private List<Address> shippingAddresses = new ArrayList<>();
    private List<CreditCard> creditCards = new ArrayList<>();
    private String frozenReason;
    private long createDate;
    // 用户会员等级, 根据expPoint计算获得
    private UserGrade userGrade;
    // 用户的经验值
    private double expPoint;
    // 存放个人偏好
    private List<String> memberPreferenceIds;
    /**
     * 用于展示用户积分信息,不存数据库
     */
    private double creditsPoint;

    // Put json format string
    private String dynamicPropertiesJson;

    private long dateOfBirth;

    // 第三方登陆数据唯一标示
    private String oauthId;
    // 第三方登陆类型，如QQ，微信
    private String oauthProvider;
}
